package com.king.security.ctrl;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author KING
 * @date 2018/8/30 17:52
 */
@Controller
@RequestMapping("user")
public class UserControl {


    @GetMapping(value = "login")
    public String login() {
        System.out.println("login---");
        return "user/login";
    }

    @GetMapping
    public String index() {
        System.out.println("index---");
        return "user/index";
    }

    @GetMapping(value = "index")
    public String index2() {
        System.out.println("index2---");
        return "user/index";
    }

}